﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.Common.Estate;

namespace ZLDC.Estate.TM
{
    public partial class NewsList : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        /// <summary>
        /// 删除公告
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string Id_List = hID.Value.Trim();
            string[] IDList = _Utility.GetStringBySplit(Id_List, '|');
            string condition=" dltflg= 1 ";
            string outmsg="";
            for (int i = 0; i < IDList.Length; i++)
            {
                 outmsg = ZLDC.Topo.BLL.Estate.NewsBLL.UpdateNews(_Convert.ToInt(IDList[i]),condition);
            }
            hID.Value = "";
            Page.ClientScript.RegisterStartupScript(this.GetType(), "msg", "<script>alert('"+outmsg+"')</script>");

        }
    }
}
